package com.stateflow.engine.config;

import com.stateflow.facade.common.util.StringUtils;

/**
 * Created by weiqingming on 2019/11/28.
 * 存储在Redis的Key或Key前缀
 */
public class RedisCacheKey {

    /** 根据账号查询用户基础信息key */
    public static final String ACCOUNT_USER_DATA = "AccountUserData";
    public static String ACCOUNT_LINK_DATA(String key){
        return StringUtils.compose(RedisCacheKey.ACCOUNT_USER_DATA, key);
    }

    /** 根据accessKey查询用户所有信息key */
    public static final String USER_ALL_DATA = "UserAllData";
    public static String ACK_LINK_DATA(String key){
        return StringUtils.compose(RedisCacheKey.USER_ALL_DATA, key);
    }
}
